package per.jdz.single;

/**
 * 饿汉模式：会造成资源浪费
 */
public class Hungry {
    private Hungry() {};

    private final static Hungry instance = new Hungry();

    public static Hungry getInstance() {
        return instance;
    }
}
